Leat\Infrastructure\Services\WooCommerceCouponManager A

Total Complexity 58
Dependencies 11
Dependents 4
Total lines 508
Lines of code 308
Logical lines of code 165
Comment lines 110
Methods 8
Properties 4

Methods 8

Method Rating Maintainability Complexity Lines of code
upsert_coupon_for_promotion_rule()
B
33 20 102
create_coupon_for_spend_rule()
B
37 15 79
handle_voucher_created_webhook()
S
49 5 35
handle_voucher_redeemed_webhook()
S
49 5 32
format_voucher_webhook()
S
58 5 15
handle_voucher_updated_webhook()
S
54 4 22
handle_voucher_deleted_webhook()
S
57 3 17
__construct()
S
71 1 6